home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…stman Always Clicks Twice / ADC Developer CD (1993-01) (''The Postman Always Clicks Twice'')_iso / Dev.CD 199301.iso / Technical Documentation / Sample Code / Snippets / Files / deleteEmptyDir / deleteEmptyDir README < prev    next >
Encoding:
Text File  |  1992-11-16  |  651 b   |  22 lines  |  [TEXT/ttxt]

  1. deleteEmptyDir and listEmptyDir
  2.  
  3. sample MPW tools
  4.  
  5. deleteEmptyDir and listEmptyDir identify all empty folders on a specified volume.  If the tool is named deleteEmptyDir, the directories will be removed.
  6.   
  7. This purpose of this snippet is to show how easy (hah!) and useful (well, yeah) the PBCatSearch call is.
  8.  
  9.  
  10. Note that deleteEmptyDir and listEmptyDir are identical; the tool just checks its name when running, and if it is 'deleteEmptyDir', calls FSpDelete for each empty directory found.
  11.  
  12.  
  13.   Syntax:
  14.            deleteEmptyDir <volName>
  15.            listEmptyDir <volName>
  16.             
  17.   Example:
  18.            listEmptyDir myHardDisk:
  19.   
  20.  
  21. Greg Robbins   9/91
  22.